package com.zmm.zebulon.common.util.spring;

import cn.hutool.extra.spring.SpringUtil;

import java.util.Objects;

/**
 * description: Spring 工具类
 *
 * @author zebulon
 * package com.zmm.zebulon.common.util.spring
 * name: SpringUtils
 * date 2025/8/20 14:16
 */
public class SpringUtils extends SpringUtil {

    /**
     * 是否为生产环境
     *
     * @return 是否生产环境
     */
    public static boolean isProd() {
        String activeProfile = getActiveProfile();
        return Objects.equals("prod", activeProfile);
    }

}
